/*
* $Id: TrueColorToolBar.h 85405 2009-08-06 13:48:31Z lexus $
*
* Copyright 2009 by Alexey Volokitin
* All rights reserved
*
*/
#ifndef TRUECOLORTOOLBAR_H_
#define TRUECOLORTOOLBAR_H_

class CTrueColorToolBar : public CToolBar
{
	UINT *m_ids;
	int m_nCount;
	std::map<UINT, std::tstring> m_idsString;
protected:
	BOOL SetTrueColorToolBar(UINT uToolBarType,	UINT uToolBar, int nBtnWidth);
	void SetButtons();
protected:
	DECLARE_MESSAGE_MAP()
	afx_msg BOOL OnToolTipText(UINT, NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg int OnCreate(LPCREATESTRUCT lpcs);
protected:
public:
	CTrueColorToolBar(int nCount);
	virtual ~CTrueColorToolBar();
public:
	virtual void FillIds(UINT *ids, std::map<UINT, std::tstring>& idsString) = 0;
	virtual void WindowCreate(CWnd* pParent) = 0;
	void SetActiveButton(int nButton, BOOL bActive);
};

#endif // TRUECOLORTOOLBAR_H_
